package com.qhy.springcloud.service;

import com.qhy.springcloud.api.Dept;
import com.qhy.springcloud.dao.CommonResult;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author qiuhongyu
 * @date 2020/9/25 17:23
 */
public interface DeptService {
    void addDept(Dept dept);

    Dept queryDept(Long id);

    List<Dept> queryDepts();

    CommonResult<?> queryDeptById(@PathVariable("id") Long id);
}
